using Model;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace 纺织贸易管理系统
{
    public class danjumingxitable : FabricBase
    {
        /// <summary>
        /// 自增列
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        [DisplayName("单号")]
        public string danhao { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string Bianhao { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        [DisplayName("品名")]
        public string pingming { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string guige { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string chengfeng { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string kezhong { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string menfu { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        [DisplayName("颜色")]
        public string yanse { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        [DisplayName("缸号")]
        /// <summary>
        /// 缸号
        /// </summary>
        public string ganghao { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string suilv { get; set; } = string.Empty;
        /// <summary>
        /// 含税单价
        /// </summary>
        public decimal  hanshuidanjia { get; set; }
        /// <summary>
        /// 未税单价
        /// </summary>
        public  decimal   weishuidanjia { get; set; }
        public decimal  toupimishu { get; set; }
        public decimal  toupijuanshu { get; set; }
        [DisplayName("米数")]
        /// <summary>
        /// 成品米数
        /// </summary>
        public decimal  chengpingmishu { get; set; }
        [DisplayName("卷数")]
        public decimal  chengpingjuanshu { get; set; }
        /// <summary>
        /// 缩率
        /// </summary>
        public decimal  suolv { get; set; }
        /// <summary>
        /// 含税合计
        /// </summary>
        public decimal  hanshuiheji { get; set; }
        /// <summary>
        /// 其他费用
        /// </summary>   
        public decimal  weishuiheji { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string beizhu { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string Chengpingyanse { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string kuanhao { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string houzhengli { get; set; } = string.Empty;
        public decimal  mashu { get; set; }
        public decimal  gongjingshu { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string danwei { get; set; } ="米";
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string bizhong { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string rkdh { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string offerid { get; set; } = string.Empty;
        public DateTime rq { get; set; } = DateTime.Now;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string Kuwei { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string OrderNum { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string CustomName { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string ContractNum { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string Huahao { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string ColorNum { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string CustomerPingMing { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string CustomerColorNum { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        /// <summary>
        /// 是否含税
        /// </summary>
        public string  IsHanshui { get; set; } = string.Empty;
        /// <summary>
        /// 平均单价
        /// </summary>
        public decimal AveragePrice { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        /// <summary>
        /// 品质样
        /// </summary>
        public string  PingzhiYang { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        /// <summary>
        /// 取走时间
        /// </summary>
        public string QuzhouDate { get; set; } = string.Empty;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        /// <summary>
        /// 染厂
        /// </summary>
        public string Rangchang { get; set; } = string.Empty;
        /// <summary>
        /// 是否发完
        /// </summary>
        public bool  IsDone { get; set; }
        /// <summary>
        /// 上卷米数
        /// </summary>
        public decimal UpRolledNum { get; set; }
        /// <summary>
        /// 上卷卷数
        /// </summary>
        public decimal UpRolledRolls { get; set; }
        /// <summary>
        /// 退仓数量
        /// </summary>
        public decimal ExitsNum { get; set; }
        /// <summary>
        /// 退仓卷数
        /// </summary>
        public decimal ExitsRoll { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal InventoryQuantity { get; set; }
        /// <summary>
        /// 是否已经对账
        /// </summary>Reconciliation
        public Boolean Reconciliation { get; set; }
        /// <summary>
        ///已生产数量
        /// </summary>Reconciliation
        public decimal ProducedQuantity { get; set; }
        /// <summary>
        /// 是否预出库
        /// </summary>
        public bool PreSale { get; set; } = false;
        /// <summary>
        /// 上卷缩率
        /// </summary>
        public decimal RollUpShrinkageRate { get; set; } = 0.0m;
        /// <summary>
        /// 出库单位
        /// </summary>
        public string OutboundUnit { get; set; } = string.Empty;
    }
}
